gtkplacessidebar: use gpointers in trash row
authorCarlos Soriano <csoriano@gnome.org>
Fri, 26 Feb 2016 10:54:53 +0000 (11:54 +0100)
committerCarlos Soriano <csoriano@gnome.org>
Fri, 26 Feb 2016 10:55:05 +0000 (11:55 +0100)
It's the right casting. Forgot to push it with the previous patch.

gtk/gtkplacessidebar.c

index 6160504759aac7b801f76ee362f22a136ffca7be..4b330e8fb8e7b8b2f7e31d14028d8cf35881b3cc 100644 (file)
@@ -994,7 +994,8 @@ update_places (GtkPlacesSidebar *sidebar)
                                       _("Trash"), icon, mount_uri,
                                       NULL, NULL, NULL, 0,
                                       _("Open the trash"));
-      g_object_add_weak_pointer (G_OBJECT (sidebar->trash_row), &sidebar->trash_row);
+      g_object_add_weak_pointer (G_OBJECT (sidebar->trash_row),
+                                 (gpointer *) &sidebar->trash_row);
       g_object_unref (icon);
     }
 
@@ -4044,7 +4045,8 @@ gtk_places_sidebar_dispose (GObject *object)
 
   if (sidebar->trash_row)
     {
-      g_object_remove_weak_pointer (G_OBJECT (sidebar->trash_row), &sidebar->trash_row);
+      g_object_remove_weak_pointer (G_OBJECT (sidebar->trash_row),
+                                    (gpointer *) &sidebar->trash_row);
       sidebar->trash_row = NULL;
     }